[#ftl strip_whitespace=true]
[#import "macros.ftl" as luk]
[#import "spring.ftl" as spring]
[@luk.secure 'ROLE_USER'][#assign auth=true][/@]
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/SpringMvcApp/style.css" />
    <script type="text/javascript" src="/SpringMvcApp/jquery.js"></script>
<script type="text/javascript" src="/SpringMvcApp/scripts.js"></script>
<script type="text/javascript" src="/SpringMvcApp/json2.js"></script>
<title>[@spring.message "page.title" /]</title>
</head>
	<body>	
	<div>	
		[@luk.link permit=previous>0 href='/SpringMvcApp/app/customer/${previous}' value='previous'/] | 
		${current} | 
		[@luk.link permit=sites>current href='/SpringMvcApp/app/customer/${next}' value='next'/]
    	<table class="datatable">
        <thead>
          <tr>
            <th scope="colgroup" colspan="4" class="header">Baza osob</th>
          </tr>
          <tr>
            <th scope="col">Imie</th>
            <th scope="col">Nazwisko</th>
            <th scope="col">Pesel</th>
            <th scope="col"><a href="#" onclick="add()">add</a></th>
          </tr>
        </thead>
        <tbody>
        [#list customerList as customer]	
          <tr>           
            <td><div class="editable">${customer.firstname}</div></td>
            <td><div class="editable">${customer.lastname}</div></td>
            <td><div>${customer.pesel}</div></td>
            <td><a href="#" onclick="del(${customer.pesel}, this)">delete</a></td>
          </tr>
        [/#list]
        </tbody>
      </table>      
    </div>	   
	</body>
</html>